package org.tgcloud.group.repository;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.tgcloud.group.entity.ProjectUser;

import java.util.List;

/**
* @Author: zhy
* @Created: 2025-10-09-下午3:49
* @Description: ${description}
*/
@Mapper
public interface ProjectUserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ProjectUser record);

    int insertSelective(ProjectUser record);

    ProjectUser selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ProjectUser record);

    int updateByPrimaryKey(ProjectUser record);

    List<ProjectUser> selectListByProjectIdAndRoleId(@Param("roleIdsList") String[] roleIdsList, @Param("projectId") Integer projectId);

    int insertBatch(@Param("userList") List<ProjectUser> userList);
}